package com.nbsaas.boot.customer.data.entity;

import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.code.annotation.SimpleClass;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@FormAnnotation(model = "标签分组")
@SimpleClass
@Data
@Entity
@Table(name = "bs_shop_user_label_catalog")
public class CustomerLabelCatalog extends LongEntity {

    @SearchItem(name = "name", label = "分组名称")
    @FormField(title = "分组名称", grid = true, required = true)
    @Comment("分组名称")
    @Column(length = 30)
    private String name;
}
